import http from "../index"

export function informationList(param={}){
    return http({
        url: '/information/list',
        method: 'get',
        data: param,
        params: param
    })
}


//查询出所有分类数据
export function informationSave(param={}){
    return http({
        url: '/information/save',
        method: 'post',
        data: param
    })
}

//查询出所有分类数据
export function informationLogin(param={}){
    return http({
        url: '/information/login',
        method: 'post',
        data: param
    })
}


//查询出所有分类数据
export function informationDetele(param={}){
    return http({
        url: '/information/delete',
        method: 'post',
        data: param
    })
}

//查询出所有分类数据
export function informationUpdate(param={}){
    return http({
        url: '/information/update',
        method: 'post',
        data: param
    })
}


//查询出所有分类数据
export function informationGetById(param={}){
    return http({
        url: '/information/getbyid/'+param,
        method: 'get',
        data: param
    })
}

//查询出所有分类数据
export function informationGetByIdCard(param={}){
    return http({
        url: '/information/getbyidCard/'+param,
        method: 'get',
        data: param
    })
}


//查询出所有分类数据
export function informationGetByNumber(param={}){
    return http({
        url: '/information/getbynumber/'+param,
        method: 'get',
        data: param
    })
}

export function informationDeleteAll(param={}){
    return http({
        url: '/information/deleteall',
        method: 'get',
        data: param
    })
}
export function informationGetAllProvince(param={}){
    return http({
        url: '/information/getAllProvince',
        method: 'get',
        data: param
    })
}